<%--
  Created by IntelliJ IDEA.
  User: Avseenko Dmitrij
  Date: 25.02.14
  Time: 11:22
  To change this template use File | Settings | File Templates.
--%>
<%@ taglib prefix="core" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="tiles" uri="http://tiles.apache.org/tags-tiles" %>
<%@ page contentType="text/html" pageEncoding="UTF-8"%>


<tiles:insertDefinition name="baseTemplate">
    <tiles:putAttribute name="title">
        <title>Типы комплектующих</title>    
    </tiles:putAttribute>
    <tiles:putAttribute name="body">

        <script src="js/typesOfComponents.js"></script>


        <div id="TypesOfComponentsMain"  onselectstart="return false" onmousedown="return false">

            <div id="TypesOfComponentsMainWrap">
                <!-- Таблица тип -->
                <div id="TypesOfComponentsMainLeft">
                    <div id="TypesOfComponentsMainLeftButtons">
                        <button id="addComponentType" class="button bg-green fg-white"  onclick="addComponentType();" ><i class="icon-plus-2 on-left"></i>Добавить</button>
                        <button disabled id="removeComponentType"  class="button bg-darkRed fg-white" onclick="removeComponentType();" > <i class="icon-minus-2 on-left" ></i>Удалить</button>
                        <button disabled id="editComponentType" class="button bg-orange fg-white" onclick="editComponentType();"><i class="icon-pencil on-left"></i>Изменить</button>
                    </div>

                    <div id="scrollTableType" data-role="scrollbox1" data-scroll="vertical">

                        <nav class="sidebar light" >
                            <ul id="tableType">
                                <script>updateTableComponentsType()</script>
                            </ul>
                        </nav>

                    </div>
                </div>

                <!-- Таблица подтип -->
                <div id="TypesOfComponentsMainRight" >

                    <div id="TypesOfComponentsMainRightButtons">
                        <button disabled id="addComponentSubType" class="button bg-green fg-white"  onclick="addComponentSubType();" ><i class="icon-plus-2 on-left"></i>Добавить</button>
                        <button disabled id="removeComponentSubType"  class="button bg-darkRed fg-white" onclick="removeComponentSubType();" > <i class="icon-minus-2 on-left" ></i>Удалить</button>
                        <button disabled id="editComponentSubType" class="button bg-orange fg-white" onclick="editComponentSubType();"><i class="icon-pencil on-left"></i>Изменить</button>
                    </div>

                    <table class="table striped hovered dataTable" id="tableSubType">

                        <tbody>
                        </tbody>

                    </table>

                </div>

            </div>
        </div>
    </tiles:putAttribute>
</tiles:insertDefinition>